<?php

require_once(dirname(__FILE__).'/../../../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
sfContext::createInstance($configuration);
 
// Borra las dos líneas siguientes si no utilizas una base de datos
$databaseManager = new sfDatabaseManager($configuration);
$databaseManager->loadConfiguration();


$deleted = Doctrine_Query::create()
        ->delete()
        ->from('BlogMedium')
        ->where('id = ?', $_POST['id'])
        ->execute();
/*
if($_POST[id]){

	$id = $_POST[id];
	$tabla = $_POST[tabla];

	mysql_query("Delete from $tabla where id = $id");

	
	
}
 * 
 */
?>